all:server client

server:server.c common.o http.o queue.o
	gcc -g -o server server.c common.o http.o queue.o -I/opt/include -L/opt/lib -levent
http.o:http.c
	gcc -g -c http.c -I/opt/include
common.o:common.c
	gcc -g -c common.c
client:client.c
	gcc -g -o client client.c
queue.o:queue.c
	gcc -g -c queue.c
http:http.c common.o
	gcc -g -o http http.c common.o -I/opt/include -L/opt/lib -levent
